#
#       Makefile for globalmem.c 
# 	writed by wangxy
#

ifeq ($(KERNELRELEASE),)
   KERNELDIR ?= /lib/modules/$(shell uname -r)/build
   PWD := $(shell pwd)

modules:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

modules_install:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install

clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c \
	modules.order Module.symvers *.ko.unsigned .tmp_versions

.PHONY: modules modules_install clean

else
	obj-m := globalfifo.o

endif 
